<?php
/*
write by vomtung@yahoo.com.vn
use to test connect between server anh client by jquery
*/
 class Mobileservice_ChangeTitleController extends Core_Controller_Action_Standard
{
  public function indexAction()
  {
	$this->_helper->layout->disableLayout();
    $this->_helper->viewRenderer->setNoRender();
	$title = $_GET['title'];
	Engine_Api::_()->getApi('settings', 'core')->setSetting('core.general.site.title',$title);
	$data = "Change Title Success";
	$jsondata = '{  "Message":"'. $data . '"}';
	echo $_GET["callback"].'('.$jsondata.')';
  }
}
 ?>